<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <%@include file="/static/common/commonHead.jsp"%>
    <script type="text/javascript" src="/static/js/outcomeManage/outcomeManage.js"></script>
    <script type="text/javascript">
        function exprotExl(){
            var payTypeId = $("#payTypeId").textbox("getValue");
            var classId = $("#classId").combobox("getValue");
            var beginDate = $("#beginDate").datebox("getValue");
            var endDate = $("#endDate").datebox("getValue");
            var qos = "payTypeId="+payTypeId+"&classId="+classId+
                "&beginDate="+beginDate+"&endDate="+endDate;
            window.open('/outcomeManage/exportXls.do?'+qos);
        }
    </script>
</head>
<body>
<%--工具栏--%>
<div id="tools">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">增加</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reloadList">刷新</a>
    <a id="btn_auditor" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="auditor">审核</a>
    <input class="easyui-combobox" name="classId" id="classId" prompt="归属班级"
           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/class/selectAll.do'" />
    <input class="easyui-combobox" name="payTypeId" id="payTypeId" prompt="支付方式"
           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=payStyle'" />
    退款时间:<input class="easyui-datebox" id="beginDate">~
    <input class="easyui-datebox" id="endDate">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="searchs"></a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-print'"
       onclick="exprotExl()">导出</a>

    <a id="btn_edit" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a id="btn_del" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" data-cmd="del">删除</a>
</div>

<%--表格--%>
<table id="outcomeManage_list"></table>


<%--编辑页面--%>
<div id="outcomeManage_dialog">
    <form id="outcomeManage_form" method="post">
        <table align="center" style="margin-top: 20px">
            <input type="hidden" name="id"/>
            <tr>
                <td>时间</td>
                <td>
                    <input class="easyui-datebox" name="hiredate" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>支出金额</td>
                <td>
                    <input class="easyui-textbox" name="payMoney" data-options="required:true">
                </td>
            </tr>
            <tr>
                <td>摘要</td>
                <td>
                    <input class="easyui-textbox" name="digest">
                </td>
            </tr>
            <tr>
                <td>支出人</td>
                <td>
                    <input class="easyui-combobox" name="payUser.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'username',url:'/employee/listAll.do'" />
                </td>
            </tr>
            <tr>
                <td>经手人</td>
                <td>
                    <input class="easyui-combobox" name="handlerUser.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'username',url:'/employee/listAll.do'" />
                </td>
            </tr>
            <tr>
                <td>支付方式</td>
                <td>
                    <input class="easyui-combobox" name="payType.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=payType'" />
                </td>
            </tr>
            <tr>
                <td>花费类型</td>
                <td>
                    <input class="easyui-combobox" name="payStyle.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=payStyle'" />
                </td>
            </tr>
            <tr>
                <td>单据号</td>
                <td>
                    <input class="easyui-textbox" name="receipt">
                </td>
            </tr>
            <tr>
                <td>归属班级</td>
                <td>
                    <input class="easyui-combobox" name="clz.id"
                           data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/class/selectAll.do'" />
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>
